from fastapi import APIRouter
from typing import List
from pydantic import BaseModel

router = APIRouter(tags=["系统"])

class Action(BaseModel):
    icon: str
    src: List[str]
    title: str

@router.get("/actions")
async def get_actions():
    actions = [
        Action(
            icon="/assets/home-icons/calendar.svg",
            src=["https://example.com/image.gif", "2"],
            title="校历"
        ),
        Action(
            icon="/assets/home-icons/map.svg",
            src=["1", "2"],
            title="地图"
        )
    ]
    return {"code": 10000, "data": actions} 